package com.aistar.hotel.service.impl;


import com.aistar.common.util.IdWorker;
import com.aistar.hotel.entity.HotelCommentReplay;
import com.aistar.hotel.mapper.HotelCommentReplayMapper;
import com.aistar.hotel.service.HotelCommentReplayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


/**
 * Created by wubin on 2019/6/23.
 */
@Service
@Transactional
public class HotelCommentReplayServiceImpl implements HotelCommentReplayService {


    @Autowired
    private HotelCommentReplayMapper hotelCommentReplayMapper;
    @Autowired
    private IdWorker idWorker;
    @Override
    public List<HotelCommentReplay> findAll(String replaytext) {

        return hotelCommentReplayMapper.findAll(replaytext);
    }

    @Override
    public HotelCommentReplay findById(String hotelReplayId) {
        return hotelCommentReplayMapper.findById(hotelReplayId);
    }

    @Override
    public void save(HotelCommentReplay hotelCommentReplay) {

        hotelCommentReplayMapper.save(hotelCommentReplay);
    }

    @Override
    public void delete(String hotelReplayId) {
       hotelCommentReplayMapper.delete(hotelReplayId);
    }

    @Override
    public void update(HotelCommentReplay hotelCommentReplay) {

        hotelCommentReplayMapper.update(hotelCommentReplay);
    }
}
